package bert;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;

public class TrackModel {

	private final Collection<TrackSegment> segments;
	
    public final TrackSegment First;
    public final TrackSegment Last;
    
	public TrackModel(Collection<TrackSegment> trackSegments, TrackSegment first, TrackSegment last)
    {
     	this.segments = new ArrayList<TrackSegment>(trackSegments);
        this.First = first;
        this.Last = last;
	}
	
	public Collection<TrackSegment> GetTrackSegments()
	{
		return Collections.unmodifiableCollection(segments);
	}
}
